<?php

require("RcDao.php");
$rcdao= new RcDao();

$mess= $_POST['thr'];
$a=$rcdao->sel($_POST['one'],$_POST['two']);
if($a){
	echo "<script>alert('该时间段已有安排');location.href='richen.php';</script>";
	
}else{
	$rcdao->savemess($_POST['one'],$_POST['two'],$mess);
	header('Location:mess_view.php');	
}
?>
